<template>
	<view>
		<tian-tab-pages v-if="type=='tian-tab-pages'" :configs="configs">
		</tian-tab-pages>
		<tian-pages v-else-if="type=='tian-pages'" :configs="configs">
		</tian-pages>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: "tian-tab-pages",
				configs: {}
			};
		},
		onLoad(e) {
			this.type = e.type;
			this.configs = {
				parent_id: e.id
			};
			if (e.title) {
				this.barTitle = e.title;
			}
		}
	}
</script>

<style lang="scss">

</style>
